import React from 'react';
import Loadable from 'react-loadable';

const LoadableComponent = Loadable({
    loader: () => import('./index.js'), // 异步加载组件
    loading: () => <div>loading...</div>,
});

export default class App extends React.Component {
    render() {
        return <LoadableComponent />;
    }
}
